<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // let {age,name}={name:"jack",age:20};
        // console.log(name,age);

        let width=600;
        let height=800;
        let depth;
        console.log(width,height);

        let size={
            width:200,
            height:300,
        };
        ({width,height}=size);
        console.log(width,height);
        ({width,height,depth}=size);
        console.log(width,height,depth);
        ({width,height,depth=400}=size);
        console.log(width,height,depth);
        let personName,name,age;
        ({name:personName,age}={name:"tom",age:20});
        console.log(personName,name,age);
    </script>
</body>
</html>